<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Cache-Control" content="no-cache">
		<meta http-equiv="Pragma" content="no-cache">
		<title>登录华信智原调查网站</title>
	</head>

	<body>
		<form>
			<p>学号：<input type="text" name="user" placeholder="请输入学号" /></p>
			<p>密码：<input type="password" name="pwdtext" placeholder="请输入密码" /></p>
		</form>
        <input type="button" value="登    录" onclick="submitlogin();"/>
        
		<script type="text/javascript" src="js/jquery-produce-3.1.0.min.js" charset="UTF-8"></script>
		<script type="text/javascript" src="js/bootstrap.min.js" charset="UTF-8"></script>
		<script type="text/javascript">
		     
			function submitlogin(){
				$.ajax({
					type: "post",
					url: "GetLogin",
					async: true,
					data: $("form").serialize(),
					dataType: "text",
					success:function(data){
						if(data=="UserExist"){
							window.location.href="survey.html";
						}else{
							alert("用户不存在！");
						}
					}
				});
			}
			
		</script>
	</body>
</html>